let str = "hello world";
console.log(str.padEnd(30, '*'));
// hello world*******************
